package com.eastfair.questionnaire.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 答题结果
 * </p>
 *
 * @author yuwx
 * @since 2021-09-04
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "AnswerResultSaveDTO", description = "答题结果")
public class AnswerResultSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 项目ID
     */
    @ApiModelProperty(value = "项目ID")
    private Long projectId;
    @ApiModelProperty(value = "")
    private Long exhibitionId;
    /**
     * 问题id
     */
    @ApiModelProperty(value = "问题id")
    private Long questionId;
    /**
     * 答案id
     */
    @ApiModelProperty(value = "答案id")
    private Long answerId;
    /**
     * 填空题输入结果
     */
    @ApiModelProperty(value = "填空题输入结果")
    @Size(max = 128, message = "填空题输入结果长度不能超过128")
    private String inputResult;
    /**
     * 实体类型
     */
    @ApiModelProperty(value = "实体类型")
    @Size(max = 32, message = "实体类型长度不能超过32")
    private String subjectType;
    /**
     * 实体id
     */
    @ApiModelProperty(value = "实体id")
    private Long subjectId;
    /**
     * 答案版本(问题修改时间戳)
     */
    @ApiModelProperty(value = "答案版本(问题修改时间戳)")
    private Integer versionNum;
    /**
     * 数据来源系统
     */
    @ApiModelProperty(value = "数据来源系统")
    @Size(max = 64, message = "数据来源系统长度不能超过64")
    private String sourceSystem;
    /**
     * 是否生效(默认1：可用 0:不可用)
     */
    @ApiModelProperty(value = "是否生效(默认1：可用 0:不可用)")
    private Integer isEnable;
    /**
     * 是否删除(默认0：未删除 1:已删除)
     */
    @ApiModelProperty(value = "是否删除(默认0：未删除 1:已删除)")
    private Integer isDelete;

}
